/**
 * 
 */
package org.codehaus.groovy.grails.plugins.autodelegator.example.service;

import org.codehaus.groovy.grails.plugins.autodelegator.annotation.Delegate;

/**
 * @author <a href="mailto:franz.see@gmail.com">See, Franz Allan Valencia</a>
 *
 */
public class ServiceWithDelegatedDeclaredMethod{

	@Delegate
	private ServiceWithDeclaredMethod serviceWithDeclaredMethod;
	
	public void setServiceWithDeclaredMethod(ServiceWithDeclaredMethod serviceWithDeclaredMethod) {
		this.serviceWithDeclaredMethod = serviceWithDeclaredMethod;
	}
	
	def uninvokedDynamicHello() {
		'you should not see this undelegated dynamic call'
	}
	
	ServiceWithDelegatedDeclaredMethod() {
		ServiceWithDelegatedDeclaredMethod.metaClass.hello = this.&uninvokedDynamicHello;
	}
	
}
